package com.pan.hisystem.mapper;

import com.pan.hisystem.pojo.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author qingyang
 * @since 2022-03-25
 */
@Repository
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> getMenusByUserId(Integer userId);

    List<Menu> getMenuWithRole();
}
